package com.learnJava.enumdemo;

public class Test2 {
    public static void main(String[] args) {
        move(Directions.UP);
    }

    public static void move(Directions direction) {
        switch (direction) {
            case UP:
                System.out.println(Directions.UP);
                break;
            case DOWN:
                System.out.println(Directions.DOWN);
                break;
            case LEFT:
                System.out.println(Directions.LEFT);
                break;
            case RIGHT:
                System.out.println(Directions.RIGHT);
                break;
        }
    }
}
